package com.heima.apis.article.fallback;

import com.heima.apis.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.stereotype.Component;

///**
// * @author 陈辉
// * @data 2023 14:50
// */
//@Component
//public class ArticleClientFallback implements IArticleClient {
//    @Override
//    public ResponseResult saveArticle(ArticleDto dto) {
//        return ResponseResult.errorResult(503,"本次请求降级处理..");
//    }
//
//}
/**
 * @author 陈辉
 * @data 2023 14:50
 */
/*
@Component
public class ArticleClientFallback  {

    public ResponseResult saveArticle(ArticleDto dto) {
        return ResponseResult.errorResult(503,"本次请求降级处理..");
    }

    @Override
    public ResponseResult findNewsComments(CommentArticleDto dto) {
        return null;
    }

}
*/
